package com.niuniu.ttms.studio.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.niuniu.ttms.common.utils.PageUtils;
import com.niuniu.ttms.common.utils.Query;

import com.niuniu.ttms.studio.dao.ScheduleDao;
import com.niuniu.ttms.studio.entity.ScheduleEntity;
import com.niuniu.ttms.studio.service.ScheduleService;


@Service("scheduleService")
public class ScheduleServiceImpl extends ServiceImpl<ScheduleDao, ScheduleEntity> implements ScheduleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ScheduleEntity> page = this.page(
                new Query<ScheduleEntity>().getPage(params),
                new QueryWrapper<ScheduleEntity>()
        );

        return new PageUtils(page);
    }

}